package com.zzz.bookdemo.model;

/*
 * @author zzr
 * @date: 2025/09/23  20:52
 * @description:
 */

import lombok.Data;
import org.apache.ibatis.annotations.Options;

import java.util.List;

@Data
public class PageResult<T> {

    private int total; // 所有记录数
    private List<T> records; // 当前页数据
    private PageRequest pageRequest;
    public PageResult(Integer total, PageRequest pageRequest,List<T> records) {
        this.total = total;
        this.records = records;
        this.pageRequest = pageRequest;
    }
}
